(global.webpackJsonp = global.webpackJsonp || []).push([ [ "subpages/pages/integral/integral" ], {
    "2b7c": function(t, n, o) {
        o.d(n, "b", function() {
            return i;
        }), o.d(n, "c", function() {
            return a;
        }), o.d(n, "a", function() {
            return e;
        });
        var e = {
            wybPopup: function() {
                return o.e("components/wyb-popup/wyb-popup").then(o.bind(null, "1306"));
            }
        }, i = function() {
            this.$createElement, this._self._c;
        }, a = [];
    },
    "6ba0": function(t, n, o) {
        (function(t) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var e = {
                components: {
                    comp_list_double: function() {
                        o.e("components/gift/comp_list_double").then(function() {
                            return resolve(o("e30e"));
                        }.bind(null, o)).catch(o.oe);
                    },
                    wybPopup: function() {
                        o.e("components/wyb-popup/wyb-popup").then(function() {
                            return resolve(o("1306"));
                        }.bind(null, o)).catch(o.oe);
                    }
                },
                mixins: [],
                data: function() {
                    return {
                        pointsRule: [],
                        couponList: [],
                        points: 0,
                        taskList: []
                    };
                },
                onLoad: function() {
                    var t = this.$db.get("userInfo");
                    t && t.points && (this.points = t.points), this.$api.settravel("积分模块"), this.pointsTaskFunc(), 
                    this.loadRes(), this.pointsRuleFunc();
                },
                methods: {
                    pointsRuleFunc: function() {
                        var t = this;
                        this.$api.pointsRule({}, function(n) {
                            "1" == n.code ? n.data && (t.pointsRule = n.data, console.log(t.pointsRule)) : t.$common.errorToShow(n.msg);
                        });
                    },
                    pointsTaskFunc: function() {
                        var t = this;
                        this.$api.pointsTask({}, function(n) {
                            if ("1" == n.code) {
                                if (n.data) {
                                    var o = n.data;
                                    t.taskList = o;
                                }
                            } else t.$common.errorToShow(n.msg);
                        });
                    },
                    to_task: function(n) {
                        this.$api.settravel("做任务积分"), n.url && n.status && (n.tabbar ? t.switchTab({
                            url: n.url
                        }) : t.navigateTo({
                            url: n.url
                        })), 3 == n.id && n.status && t.navigateTo({
                            url: "/subpages/pages/official-account/official-account"
                        });
                    },
                    loadRes: function() {
                        var t = this;
                        this.couponList = [], this.$api.couponListApi({
                            mode: 1
                        }, function(n) {
                            "1" == n.code ? n.data && n.data.list && (t.couponList = n.data.list) : t.$common.errorToShow(n.msg);
                        });
                    },
                    close_rule: function() {
                        this.$refs.popup.hide();
                    },
                    show_rule: function() {
                        this.$api.settravel("积分规则"), this.$refs.popup.show();
                    },
                    to_detail: function() {
                        this.$api.settravel("积分明细"), t.navigateTo({
                            url: "integral-detail"
                        });
                    }
                }
            };
            n.default = e;
        }).call(this, o("543d").default);
    },
    a8ed: function(t, n, o) {
        o.r(n);
        var e = o("2b7c"), i = o("f8b3");
        for (var a in i) "default" !== a && function(t) {
            o.d(n, t, function() {
                return i[t];
            });
        }(a);
        var u = o("f0c5"), s = Object(u.a)(i.default, e.b, e.c, !1, null, "61b37e5b", null, !1, e.a, void 0);
        n.default = s.exports;
    },
    f5dc: function(t, n, o) {
        (function(t) {
            o("98af"), e(o("66fd"));
            var n = e(o("a8ed"));
            function e(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, t(n.default);
        }).call(this, o("543d").createPage);
    },
    f8b3: function(t, n, o) {
        o.r(n);
        var e = o("6ba0"), i = o.n(e);
        for (var a in e) "default" !== a && function(t) {
            o.d(n, t, function() {
                return e[t];
            });
        }(a);
        n.default = i.a;
    }
}, [ [ "f5dc", "common/runtime", "common/vendor" ] ] ]);